/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package net.tygzs.minerpg.CommandExecutor.MinePacket;

import java.util.Set;
import net.tygzs.minerpg.Main;
import org.bukkit.ChatColor;
import org.bukkit.command.CommandSender;

/**
 *
 * @author thtTNT
 */
public class Command_List
{
    
    public static void sendList(CommandSender sender)
    {
        Set<String> PacketNames = Main.getPluginConfig().getPackets().keySet();
        if (PacketNames.isEmpty())
        {
            sender.sendMessage(ChatColor.RED + "目前还没有设置礼包哦");
            return;
        }
        sender.sendMessage(ChatColor.GREEN + "目前有以下礼包:");
        for (String PacketName : PacketNames)
        {
            sender.sendMessage(ChatColor.BLUE + PacketName);
        }
    }
}
